let array = [ one two three four ]
let space_string = $join(array)
let comma_string = $join(array ', ')
echo $space_string
echo $comma_string
echo @split(space_string)
echo @split(comma_string ', ')

let array = ["one two" "three four" "five six" "seven eight" "nine ten"]
echo $len(@array)
for element in 0..$len(@array)
    echo @array[$element]
end

let string = "one 😉😉😉 two 😉😉😉 three 😉😉😉 four 😉😉😉 five"
echo $len(string) $len_bytes(string)
for grapheme in 0..$len(string)
    echo $string[$grapheme]
end

echo $replace("one two one two" one 1)
echo $replacen("one one one one" one 1 3)
echo $repeat("one " 5)

echo $join([one two three] "\n")
echo $join([one two three] "\t")
echo $join([one two three] '\\n')
echo $join([one two three] "\\\\n")
echo $replace($join([one two three] "\n") "\n" "\t")
let a = "applesauce"
let pos = $find(a "s")
let array = [@split_at(a $pos)]
echo $join(array "\n")

let a = [1 2 3 4 5]
let b = "1 2 3 4 5"
echo $join(@split(b " ") $join(a " "))

echo $regex_replace("one two onemy anemy town" "\ o|\ a" "\ e")

echo $unescape('one two\"\tone')
echo $escape("'one two'")

let spacey = "  Spacey "
echo $trim(" So Space  ")!
echo $trim($spacey)!
echo $trim_end(" So Space  ")!
echo $trim_end($spacey)!
echo $trim_start(" So Space  ")!
echo $trim_start($spacey)!
